package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 通知
 * </p>
 *
 * @author chenxuebin
 * @since 2018-08-22
 */
@TableName("t_notice")
@Data
public class Notice extends Model<Notice> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	private String title;
	private String info;

	private Integer sort;
	private Integer state;

	private Long uid;

	private Long mid;
	private Long mpid;

	private Date createtime;
	private Date modifytime;
	private Long modifier;

	private Integer type;
	private Integer object;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Notice{" +
			"id=" + id +
			", info=" + info +
			", state=" + state +
			", sort=" + sort +
			", uid=" + uid +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			"}";
	}
}
